<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./js/vue2.js"></script>
</head>
<body>

    <div id="app">
      <h1 v-if='isShow'>你看的到我吗</h1>
        <button @click='isShow=!isShow'>切换</button>
    </div>
    <script>
        var vm = new Vue({
            el:'#app',
            data:{
                isShow:true
            }
        })
        
        </script>
</body>
</html>